export function readImage(url: string) {
	return new Promise(async (resolve, reject) => {
		const image = new globalThis.Image();
		image.onload = () => resolve(image);
		image.onerror = reject;
		image.src = url;
	})
}